package com.numberone.master.modules.orders.entity;

import org.hibernate.validator.constraints.Length;

import com.numberone.master.common.persistence.DataEntity;

/**
 * 提现Entity
 * @author ck
 * @version 2018-03-27
 */
public class WithdrawalsOrder extends DataEntity<WithdrawalsOrder> {
	
	private static final long serialVersionUID = 1L;
	private String withdrwalsAmount;		// 提现金额
	private String arrivalAmount;		// 到账金额
	private String orderNo;		// 提现订单号
	private String state;		// 提现状态 1：审核中 2：成功 3：失败
	private String officeId;		// 所属代理商
	private String officeName; //代理商名称
	private String createById;		// 创建者
	private String updateById;		// 更新者
	
	public WithdrawalsOrder() {
		super();
	}

	public WithdrawalsOrder(String id){
		super(id);
	}

	public String getWithdrwalsAmount() {
		return withdrwalsAmount;
	}

	public void setWithdrwalsAmount(String withdrwalsAmount) {
		this.withdrwalsAmount = withdrwalsAmount;
	}
	
	public String getArrivalAmount() {
		return arrivalAmount;
	}

	public void setArrivalAmount(String arrivalAmount) {
		this.arrivalAmount = arrivalAmount;
	}
	
	@Length(min=0, max=20, message="提现订单号长度必须介于 0 和 20 之间")
	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	
	@Length(min=0, max=1, message="提现状态 1：审核中 2：成功 3：失败长度必须介于 0 和 1 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	@Length(min=0, max=20, message="所属代理商长度必须介于 0 和 20 之间")
	public String getOfficeId() {
		return officeId;
	}

	public void setOfficeId(String officeId) {
		this.officeId = officeId;
	}

	public String getOfficeName() {
		return officeName;
	}

	public void setOfficeName(String officeName) {
		this.officeName = officeName;
	}

	public String getCreateById() {
		return createById;
	}

	public void setCreateById(String createById) {
		this.createById = createById;
	}

	public String getUpdateById() {
		return updateById;
	}

	public void setUpdateById(String updateById) {
		this.updateById = updateById;
	}
	
}